@extends('mobile.layout1')
@section('title','提现记录')


@section('aside-bar')

@endsection



@section('css')
    <link rel="stylesheet" href="{{asset('FENXIAO/js/dropload-gh-pages/dist/dropload.css')}}">
@endsection

@section('content')
<body>
<div style="height: 1px">

</div>
<div class="view-container mgn55">
    <div class="view-inner">
        <ul class="deposit-list">

        </ul>
        <div class="jiazai"></div>
    </div>
</div>
</body>
</html>
    @endsection
@section('js')
    <script type="text/javascript" src="{{asset('FENXIAO/js/dropload-gh-pages/dist/dropload.js')}}"></script>

    <script>


        $(function(){
            var tab1LoadEnd = false;

            // tab
            var page = 1;

            // dropload
            var dropload = $('.jiazai').dropload({
                scrollArea : window,
                loadDownFn : function(me){
                    // 加载菜单一的数据

                        $.ajax({
                            type: 'GET',
                            url: '/myTeam/withdrawAjax',
                            data:{page:page},
                            dataType: 'text',
                            success: function(data){
                                var result = '';
                                page++;

                                if(data==''){
                                    // 数据加载完
                                    tab1LoadEnd = true;
                                    // 锁定
                                    me.lock();
                                    // 无数据
                                    me.noData();
                                }
                                $('.deposit-list').append(data);
                                me.resetload();


                            },
                            error: function(xhr, type){
                                //alert('Ajax error!');
                                // 即使加载出错，也得重置
                                me.resetload();
                            }
                        });
                        // 加载菜单二的数据

                }
            });
        });
    </script>
    @endsection